package com.portal.cwegportal.model;

import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.*;
import java.util.Date;

@NameStyle(Style.camelhumpAndLowercase)
@Table(name="browse_record")
@Entity
public class BrowseRecord {

//    id                   bigint not null auto_increment,
//    gmt_create           datetime not null,
//    gmt_modified         datetime not null,
//    is_deleted           tinyint not null comment '1 表示删除，0 表示未删除。',
//    creator_name         varchar(50),
//    article_id           bigint,
//    key_type             int,
//    username             varchar(200),
//    usercode             varchar(200),
//    userid               varchar(200),
//    creator_id           varchar(50),
//    creator_code         varchar(50),
    @ApiModelProperty(value = "主键Id",example = "",required = false)
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    @ApiModelProperty(value = "创建时间",example = "",required = false)
    private Date gmtCreate;
    @ApiModelProperty(value = "修改时间",example = "",required = false)
    private Date gmtModified;
    @ApiModelProperty(value = "是否删除",example = "",required = false)
    @Column(name="is_deleted")
    private boolean deleted;
    @ApiModelProperty(value = "相关主表ID",example = "",required = false)
    private Long articleId;
    @ApiModelProperty(value = "主表类型 新闻、公告、发文",example = "",required = false)
    private String keyType;
    @ApiModelProperty(value = "浏览人的姓名",example = "",required = false)
    private String username;
    @ApiModelProperty(value = "浏览人的Code",example = "",required = false)
    private String usercode;
    @ApiModelProperty(value = "浏览人的ID",example = "",required = false)
    private String userid;
    @ApiModelProperty(value = "创建人的Id",example = "",required = false)
    private String creatorId;
    @ApiModelProperty(value = "创建人的Code",example = "",required = false)
    private String creatorCode;
    @ApiModelProperty(value = "创建人的Name",example = "",required = false)
    private String creatorName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getKeyType() {
        return keyType;
    }

    public void setKeyType(String keyType) {
        this.keyType = keyType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorCode() {
        return creatorCode;
    }

    public void setCreatorCode(String creatorCode) {
        this.creatorCode = creatorCode;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
}
